let App = getApp();

Page({
  data: {

  },
  onLoad: function (options) {

  }, 
  authorLogin: function (e) {
    wx.showLoading({ title: "正在登录", mask: true });
    App.getUserInfo({
      success: (login, res) => {
        App.getUserInfo()
        wx.hideLoading()
        wx.navigateBack()
      },
      fail: (error) => {
        wx.hideLoading()
        wx.showModal({
          title: '系统提示',
          content: error.errMsg,
          showCancel: false,
          success: function (res) { }
        });
      }
    })
  },
})